<?php

namespace app\admin\validate\games;

use think\Validate;

class Game extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'game' => 'require',
        'first' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'game.require' => '请填写游戏名称',
        'first.first' => '请填写游戏首字母',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['game','first'],
        'edit' => ['game','first'],
    ];
    
}
